﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： ProductEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-07-31
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
    /// <summary>
    ///产品数据实体  
    /// </summary>
    [PrimaryKey("ProductID")]
    public class Product
    {
        ///<summary>
        ///产品
        ///</summary>
        public Product()
        {
        }


        ///<summary>
        ///主键
        ///</summary>
        [Column("ProductID", "主键")]
        public int ProductID { get; set; }

        ///<summary>
        ///名称
        ///</summary>
        [Column("ProductName", "名称")]
        public string ProductName { get; set; }

        ///<summary>
        ///简介
        ///</summary>
        [Column("ProductDesc", "简介")]
        public string ProductDesc { get; set; }

        ///<summary>
        ///详情
        ///</summary>
        [Column("ProductDetail", "详情")]
        public string ProductDetail { get; set; }

        ///<summary>
        ///简图
        ///</summary>
        [Column("HeadImgUrl", "简图")]
        public string HeadImgUrl { get; set; }

        ///<summary>
        ///产品类别
        ///</summary>
        [Column("ProductType", "产品类别")]
        public int ProductType { get; set; }

        ///<summary>
        ///用户ID
        ///</summary>
        [Column("UserID", "用户ID")]
        public int UserID { get; set; }
        ///<summary>
        ///OpenID
        ///</summary>
        [Column("OpenID", "OpenID")]
        public string OpenID { get; set; }
        ///<summary>
        ///公司ID
        ///</summary>
        [Column("CompanyID", "公司ID")]
        public int CompanyID { get; set; }

        ///<summary>
        ///是否全部可见(1：个人不共享，2：共享所有人，3：共享特定群组）
        ///</summary>
        [Column("ShareType", "是否全部可见(1：个人不共享，2：共享所有人，3：共享特定群组）")]
        public int ShareType { get; set; }

        ///<summary>
        ///来源产品
        ///</summary>
        [Column("SourceID", "来源产品")]
        public int SourceID { get; set; }

        ///<summary>
        ///创建时间
        ///</summary>
        [Column("CreateDate", "创建时间")]
        public DateTime CreateDate { get; set; }

        ///<summary>
        ///更新时间
        ///</summary>
        [Column("UpdateDate", "更新时间")]
        public DateTime UpdateDate { get; set; }

        ///<summary>
        ///逻辑标识(1：可用 0：禁用)
        ///</summary>
        [Column("IsActive", "逻辑标识(1：可用 0：禁用)")]
        public int IsActive { get; set; }

    }
}